package com.thingsgrid.physicalmodel.service;

import com.thingsgrid.physicalmodel.entity.PhysicalModel;

import java.util.List;
import java.util.Map;

public interface IPhysicalModelService {
	/**
	 * 新增
	 * @param
	 */
	Boolean savePhysical(String obj, Integer userId);
	/**
	 * 删除
	 */
	Boolean removePhysical(String physicalModelId);
	/**
	 * 修改
	 */
	Boolean updatePhysical(String obj);
	/**
	 * 查询所有
	 */
	List<PhysicalModel> findAll();
	/**
	 * 根据physicalName查
	 */
	PhysicalModel findPhysicalById(String physicalModelId);
	/**
	 * 分页查
	 */
	Map<String, Object> findAll(Integer pageIndex, Integer pageSize);

	List<PhysicalModel> findOneByName(String physicalName);
}

